"use strict";
cc._RF.push(module, '69b61G3S01LZaq9BiXtf7/n', 'LocalStorageMgr');
// scripts/LocalStorageMgr.js

"use strict";

var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {
  value: !0
});

var i = function () {
  function t() {}

  return t.getInstance = function () {
    return null === t._instance && (t._instance = new t()), t._instance;
  }, t.prototype.setMusicVolume = function (t) {
    cc.sys.localStorage.setItem("_music_volume_", t);
  }, t.prototype.setEffectVolume = function (t) {
    cc.sys.localStorage.setItem("_effect_volume_", t);
  }, t.prototype.getMusicVolume = function () {
    var t = .5,
        e = cc.sys.localStorage.getItem("_music_volume_");
    return "" == e && (t = .5), t = parseFloat(e), isNaN(t) && (t = .5), t;
  }, t.prototype.getSoundVolume = function () {
    var t = .5,
        e = cc.sys.localStorage.getItem("_effect_volume_");
    return "" == e && (t = .5), t = parseFloat(e), isNaN(t) && (t = .5), t;
  }, t.prototype.setEffectSwitch = function (t) {
    cc.sys.localStorage.setItem("_sound_", t);
  }, t.prototype.setMusicSwitch = function (t) {
    cc.sys.localStorage.setItem("_music_", t);
  }, t.prototype.setHint1 = function (t) {
    cc.sys.localStorage.setItem("0", t);
  }, t.prototype.getHint1 = function () {
    return "false" != cc.sys.localStorage.getItem("0");
  }, t.prototype.setHint2 = function (t) {
    cc.sys.localStorage.setItem("0", t);
  }, t.prototype.getHint2 = function () {
    return "false" != cc.sys.localStorage.getItem("0");
  }, t.prototype.getSoundSwitch = function () {
    return "false" != cc.sys.localStorage.getItem("_sound_");
  }, t.prototype.getMusicSwitch = function () {
    return "false" != cc.sys.localStorage.getItem("_music_");
  }, t.prototype.getMachineId = function () {
    return cc.sys.localStorage.getItem("_machine_id_") || "";
  }, t.prototype.setMachineId = function (t) {
    cc.sys.localStorage.setItem("_machine_id_", t);
  }, t.prototype.setLoginType = function (t) {
    cc.sys.localStorage.setItem("_login_type_", t);
  }, t.prototype.getLoginType = function () {
    return cc.sys.localStorage.getItem("_login_type_");
  }, t.prototype.getCheckinTime = function () {
    return cc.sys.localStorage.getItem("_checkin_time_");
  }, t.prototype.setCheckinTime = function (t) {
    cc.sys.localStorage.setItem("_checkin_time_", t);
  }, t.prototype.setAccountInfo = function (t) {
    var e = JSON.stringify(t);
    cc.sys.localStorage.setItem("_user_data_", e);
  }, t.prototype.getAccountInfo = function () {
    return JSON.parse(cc.sys.localStorage.getItem("_user_data_"));
  }, t.prototype.setCheckService = function (t) {
    cc.sys.localStorage.setItem("_check_service_", t);
  }, t.prototype.getCheckService = function () {
    return "false" != cc.sys.localStorage.getItem("_check_service_");
  }, t.prototype.setIsWxShare = function (t) {
    cc.sys.localStorage.setItem("_wx_share_", t);
  }, t.prototype.getIsWxShare = function () {
    return "false" != cc.sys.localStorage.getItem("_wx_share_");
  }, t._instance = null, t;
}();

o["default"] = i;

cc._RF.pop();